package com.sweetguy.dto;

import com.sweetguy.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Schema(name = "订单明细添加DTO")
@Data
public class OrderDetailInsertDTO implements Serializable, RE {

    @NotNull(message = "课程ID不能为空")
    @Schema(description = "秒杀课程主键,课程表外键")
    private Long fkCourseId;

    @NotNull(message = "订单ID不能为空")
    @Schema(description = "订单主键,订单表外键")
    private Long fkOrderId;
}
